package cn.lavender.web.test;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 测试对象
 * JSR-303的注解
 * </p>
 *
 * @author: zhu.chen
 * @date: 2021/3/15
 * @version: v1.0.0
 */
@Data
public class Person {

    @NotBlank(message = "name is empty.")
    private String name;

    @NotEmpty(message = "age is empty.")
    private String age;

}
